<?php

$a = [
  'age' => 'djfie',
];
$b = json_encode($a);

echo $a['age'];

echo $b;
echo $b->age;

$c = json_decode($b);
var_dump($c);
echo $c->age;

echo '----';
var_dump(json_decode('{}'));
$d=json_decode('{"age":"098"}');
echo $d->age;
new stdClass();
echo '----';
echo json_encode(new stdClass());
?>